<html>
<head><meta charset="utf-8"><title>Linkifier Rules · zulip · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122653-zulip/index.html">zulip</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122653-zulip/topic/Linkifier.20Rules.html">Linkifier Rules</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="233302018"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122653-zulip/topic/Linkifier%20Rules/near/233302018" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/122653-zulip/topic/Linkifier.20Rules.html#233302018">(Apr 06 2021 at 11:22)</a>:</h4>
<p>It seems, that recently something changed with the linkifier, since <a href="https://github.com/rust-lang/clippy/issues/1234">clippy#1234</a> does no longer work. This is probably because this rule:</p>
<div class="codehilite"><pre><span></span><code>(?P&lt;repo&gt;[a-zA-Z0-9_-]+)#(?P&lt;id&gt;[0-9]+)
</code></pre></div>
<p>has precedence over the <code>clippy</code> rule. Writing <a href="https://github.com/rust-lang/rust-clippy/issues/1234">rust-clippy#1234</a> still works as expected.</p>
<p>Can the Clippy rule (<code>clippy#(?P&lt;id&gt;[0-9]+)</code>) get moved up in precedence over the general repo-rule? If not, that should also be ok and we just have to get used to it.</p>



<a name="233302675"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122653-zulip/topic/Linkifier%20Rules/near/233302675" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/122653-zulip/topic/Linkifier.20Rules.html#233302675">(Apr 06 2021 at 11:29)</a>:</h4>
<p>I don't think there is a way to adjust the precedence of the linkifier rules, they're sorted alphabetically (by pattern) in the org settings and presumably that's the order they're checked.</p>



<a name="237543984"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122653-zulip/topic/Linkifier%20Rules/near/237543984" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/122653-zulip/topic/Linkifier.20Rules.html#237543984">(May 05 2021 at 18:31)</a>:</h4>
<p>Hmm, I wonder if there’s a way to hack the pattern so that it still matches the same expressions, but comes earlier in the alphabetical ordering...</p>



<a name="238148912"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122653-zulip/topic/Linkifier%20Rules/near/238148912" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tavian Barnes <a href="https://rust-lang.github.io/zulip_archive/stream/122653-zulip/topic/Linkifier.20Rules.html#238148912">(May 10 2021 at 14:15)</a>:</h4>
<p>I think you could add an optional impossible group like <code>($0001)?</code> at the start of every pattern</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>